package com.parking.mgr.useraccount.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.parking.mgr.useraccount.model.entity.LoginAuthEntity;
import com.parking.mgr.useraccount.model.param.LoginAuthParam;
import com.parking.mgr.useraccount.model.vo.AuthUserInfoVO;
import com.parking.mgr.useraccount.model.vo.LoginAuthVO;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @ClassName LoginAuthService
 * @Description 登录授权service
 * @Auther: zhijianpu
 * @Date: 2023/5/26
 */
public interface LoginAuthService extends IService<LoginAuthEntity> {


    /**
     * 获取登录授权码
     *
     * @param request
     * @return
     */
    Map<String, Object> getAuthCode(HttpServletRequest request);

    /**
     * 根据授权码获取用户信息
     *
     * @param fCode
     * @return
     */
    AuthUserInfoVO getLoginUserInfo(String fCode);

    /**
     * 登录授权列表(分页)
     *
     * @param loginAuthParam
     * @return
     */
    IPage<LoginAuthVO> list(LoginAuthParam loginAuthParam);
}
